package com.business.feign.mds.comTest;

import com.business.feign.mds.comTest.fallback.ComTestFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

/**
 * @author: mengxiangzhong
 * @date: 2023/11/15 16:05
 * @TODO:
 **/
@FeignClient(value = "comTest",fallback = ComTestFeignFallback.class)
public interface ComTestFeign {

    @GetMapping("testRedis")
    String testRedis(@RequestParam("key") String key, @RequestParam("name") String name);

    @PostMapping(value = "addTUser")
    Integer addTUser(@RequestBody String json);

    @PostMapping("testRedisPost")
    String  testRedisPost();

    @PostMapping("testRedisPostBody")
    String  testRedisPostBody(String json);
}
